from tkinter import *

x,y=map(int(input(' Введите координаты точек')).split())


f=int(input('Введите коофицент увеличения'))
coords=[x+10,y, x+10,y+10, x+20,y+10, x+20,y, x+30,y, x+30,y+20, x,y+20]

if f == 0 and x>=0 and x<500 and y>=0 y>=0 and y<500: 
    pass
else:
pass
    if f > 0 and 0*f+x>=0 and 0*f+y>=0 and 20*f+x<=500 and 20*f+y<=500:
else:
    pass
    if f < 0 and 20*f+x>=0 and 20*f+y>=0 and 0*f+x<=500 and 0*f+y<=500:
else: 
    pass
else:
    print('Размеры фигуры ппревышает размеры поля')exit()
root = Tk()
root. title('ИТ марафон - ГБОУ школа №1449')
root.geometry('500x500')
canvas.pack(anchor= CENTER, expand=1)
canvas.create_polygon(coords[0] *f+x, coords[1] *f+y
                      coords[2] *f+x, coords[3] *f+y
                      coords[4] *f+x, coords[5] *f+y
                      coords[6] *f+x, coords[7] *f+y
                      coords[8] *f+x, coords[9] *f+y
                      coords[10] *f+x, coords[11] *f+y
                      coords[12] *f+x, coords[13] *f+y
                      coords[14] *f+x, coords[15] *f+y fill='green'
root.mainloop
                      